#include "Channel.h"

#include "VideoChannel.h"
#include "AudioChannel.h"

IChannel *Channel_Create(ChannelType channelType) {
  IChannel *pChannel = nullptr;
  switch (channelType) {
    case ChannelType_Video:
      pChannel = new VideoChannel();
      break;
    case ChannelType_Audio:
      pChannel = new AudioChannel();
      break;
  }

  return pChannel;
}


void Channel_Destroy(IChannel *pChannel) {
  DELETE_PTR(pChannel)
}
